package com.example.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 商家表
 *
 * @TableName t_merchant
 */
@TableName(value = "t_merchant")
@Data
@Builder
@ToString
public class Merchant implements Serializable {
	@Serial
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;
	@TableId(type = IdType.AUTO)
	@Schema(description = "商家id，主键，自增长")
	private Long merchantId;

	@Schema(description = "唯一标识")
	private String openid;

	@Schema(description = "商家姓名")
	private String fullname;

	@Schema(description = "商家头像URL")
	private String avatar;

	@Schema(description = "商家昵称")
	private String nickname;

	@Schema(description = "联系电话")
	private String phone;

	@Schema(description = "地址")
	private String address;

	@Schema(description = "是否签署协议")
	private Integer isAgreement;

	@Schema(description = "余额")
	private BigDecimal balance;

	@Schema(description = "剩余天数")
	private Integer daysRemaining;

	@Schema(description = "创建时间")
	private LocalDateTime createTime;

	@Schema(description = "修改时间")
	private LocalDateTime modifyTime;

	@Schema(description = "盐")
	private String salt;

	@Schema(description = "删除标记")
	private Integer delFlag;
}